package com.thread;

public class Person implements Runnable{
    private FinalThread finalThread;
    private int times;
    Person(FinalThread finalThread){
        this.finalThread = finalThread;
    }
    public void run(){
        while(finalThread.addNums()){
                times++;
        }
    }
    public int getTimes(){
        return times;
    }
}
